package com.itheima.night.demo03;

public class Demo {
    public static void main(String[] args) {
        Girl girl = new Girl();
        Boy boy = new Boy();
        Thread t1 = new Thread(girl);
        Thread t2 = new Thread(boy);
        t1.setName("女孩");
        t2.setName("男孩");
        t1.start();
        t2.start();
    }
}
